<div class="well">
	<blockquote>
		<h3 class="text-error">My Page - Common Used Passengers</h3>
	</blockquote>
	<table class="table table-bordered" id="my_page_passengers_block">
		<thead>
			<tr>
				<th>Pasenger Name</th>
				<th>Certification Type</th>
				<th>Certification Number</th>
				<th>Passenger Type</th>
				<th>Operation</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($passengers as $k => $passenger):?>
			<tr <?php if ($k % 2 == 0):?>class="info"<?php endif;?>>
				<td><?php echo $passenger['passenger_name'];?></td>
				
				<?php if ($passenger['certification_type'] == 1):?>
				<td>Identification Card</td>
				<?php elseif ($passenger['certification_type'] == 2):?>
				<td>Officer Certificate</td>
				<?php else:?>
				<td>-</td>
				<?php endif;?>
				
				<td><?php echo (($passenger['passenger_type'] != 'I') ? $passenger['certification_number'] : '-');?></td>
				
				<?php if ($passenger['passenger_type'] == 'A'):?>
				<td>Adult</td>
				<?php elseif ($passenger['passenger_type'] == 'C'):?>
				<td>Child</td>
				<?php else:?>
				<td>Infant</td>
				<?php endif;?>
				
				<?php if (!in_array($passenger['id'], $valid_order_passenger_ids)):?>
				<td id="<?php echo $passenger['id'];?>">
					<button class="btn btn-mini btn-success" type="button" style="width: 45px;" id="edit_passenger">Edit</button>
					<button class="btn btn-mini btn-danger" type="button" id="delete_passenger">Delete</button>
				</td>
				<?php else:?>
				<td><abbr title="This passenger can not be operated maybe because of being involved in a valid order">-</abbr></td>
				<?php endif;?>
			</tr>
			<?php endforeach;?>
		</tbody>
	</table>
</div>
